app.controller("goodsController" , function ($scope,$controller,goodsService) {
    $scope.entity = {goods:{},goodsDesc:{},itemList:[]};

    $scope.save =function () {
        goodsService.save($scope.entity).then(function (result) {
            if (result.data.success){
                $scope.entity = {goods:{},goodsDesc:{},itemList:[]};
                alert("保存成功！");
            }else{
                alert(result.data.message);
            }
        })
    }
})